<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// [ 应用入口文件 ] 
if(version_compare(PHP_VERSION,'5.3.0','<'))  die('require PHP > 5.3.0 !');

if (!defined('__PUBLIC__')) {
    $_public = rtrim(dirname(rtrim($_SERVER['SCRIPT_NAME'], '/')), '/');
    define('__PUBLIC__', (('/' == $_public || '\\' == $_public) ? '' : $_public).'/public');
} 
defined("RDS") || define("RDS", DIRECTORY_SEPARATOR);  //调用系统目录的分隔,如win下为’\’或linux下为’/’
define('APP_PATH', __DIR__ . '/../app/');
define('PUBLIC_PATH', __DIR__ . '/../public/'); 
//当前域名
defined("WEBROOT") || define("WEBROOT", "https://" . $_SERVER['HTTP_HOST'] . "/"); //得当前域名  
defined("WEBPATH") || define("WEBPATH", WEBROOT . "static/");  

// 加载框架引导文件
require __DIR__ . '/../system/start.php';
